package com.arpa.wms.domain.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.arpa.wms.domain.entity.GoodsUnitConversion;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 出货明细关联出库分配信息
 * </p>
 *
 * @author xuyang
 * @since 2020-09-15
 */
@Data
@ApiModel(value="DeliveryItemWithDistributionVO对象", description="出货分配关联出库明细信息")
public class DeliveryItemWithDistributionVO extends DeliveryDistributionVO implements Serializable {

    @ApiModelProperty(value = "数据标识，分配表code")
    private String code;

    @ApiModelProperty(value = "出货单号")
    private String deliveryCode;

    @ApiModelProperty(value = "出货明细标识")
    private String deliveryItemCode;

    @ApiModelProperty(value = "来源单明细标识,便于回填信息")
    private String sourceItemCode;

    @ApiModelProperty(value = "商品编码code")
    private String goodsCode;

    @ApiModelProperty(value = "商品编码")
    private String goodCode;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品条码")
    private String goodsBarCode;

    @ApiModelProperty(value = "商品规格")
    private String spec;

    @ApiModelProperty(value = "商品保质期（天）")
    private BigDecimal expirationQuantity;

    @ApiModelProperty(value = "单位")
    private String goodsUnit;

    @ApiModelProperty(value = "基本单位")
    private String basicUnit;

    @ApiModelProperty(value = "单位名称")
    private String goodsUnitName;

    @ApiModelProperty(value = "数量（销售单位）")
    private BigDecimal quantity;

    @ApiModelProperty(value = "明细总数量")
    private BigDecimal totalNum;

    @ApiModelProperty(value = "基本单位名称")
    private String basicUnitName;

    @ApiModelProperty(value = "基本单位转换数量")
    private BigDecimal basicQuantity ;

    @ApiModelProperty(value = "仓库")
    private String warehouseCode;

    @ApiModelProperty(value = "库区")
    private String warehouseSpaceCode;

    @ApiModelProperty(value = "临时库位code")
    private String location;

    @ApiModelProperty(value = "原库位code，用于作业中库存返还时操作；")
    private String oldLocation;

    @ApiModelProperty(value = "原库位号，用于作业中库存返还时操作；")
    private String oldLocationName;

    @ApiModelProperty(value = "临时库位库位名称")
    private String locationName;

    @ApiModelProperty(value = "分配数量")
    private BigDecimal distributionQuantity;

    @ApiModelProperty(value = "取消分配数量")
    private BigDecimal cancelQuantity = BigDecimal.ZERO;

    @ApiModelProperty(value = "拣货数量")
    private BigDecimal pickingQuantity;

    @ApiModelProperty(value = "出库数量")
    private BigDecimal outboundQuantity;

    @ApiModelProperty(value = "库存code")
    private String inventoryCode;

    @ApiModelProperty(value = "原库存code")
    private String oldInventoryCode;

    @ApiModelProperty(value = "库存状态")
    private String goodsStatus;

    @ApiModelProperty(value = "库存状态名称")
    private String goodsStatusName;

    @ApiModelProperty(value = "分配状态")
    private String distributionStatus;

    @ApiModelProperty(value = "明细状态")
    private String itemStatus;

    @ApiModelProperty(value = "生产日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtManufacture;

    @ApiModelProperty(value = "过期日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtExpire;

    @ApiModelProperty(value = "存货日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtStock;

    @ApiModelProperty(value = "供应商")
    private String supplier;

    @ApiModelProperty(value = "序列号")
    private String serialNumber;

    @ApiModelProperty(value = "扩展1")
    private String extendOne;

    @ApiModelProperty(value = "扩展2")
    private String extendTwo;

    @ApiModelProperty(value = "扩展3")
    private BigDecimal extendThree;

    @ApiModelProperty(value = "扩展4")
    private BigDecimal extendFour;

    @ApiModelProperty(value = "扩展5")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime extendFive;

    @ApiModelProperty(value = "扩展6")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime extendSix;

    @ApiModelProperty(value = "库存批次号")
    private String lot;

    @ApiModelProperty(value = "收货批次号")
    private String receiveLot;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "总数")
    private Long total;

    @ApiModelProperty(value = "商品可用单位列表")
    private List<GoodsUnitConversion> goodsUnitConversionList;

    @ApiModelProperty(value = "库存是否锁定；从库存中带过来的")
    private Integer isLock;

    @ApiModelProperty(value = "库存是否锁定；从库存中带过来的")
    private String inventoryContainerBarCode;

    @ApiModelProperty(value = "oms销售单明细code")
    private String saleItemCode;

    @ApiModelProperty(value = "库存商品是否可发货；0：是；1：否；")
    private String isConsignment;

    @ApiModelProperty(value = "复核数量")
    private BigDecimal recheckQuantity;

    @ApiModelProperty(value = "波次号")
    private String wavePickingCode;

    @ApiModelProperty(value = "交易平台订单")
    private String sourceOrderCode;

    @ApiModelProperty(value = "包裹数量")
    private Integer planPackQuantity;

    @ApiModelProperty(value = "打包数量")
    private Integer packQuantity;

    @ApiModelProperty(value = "单包裹组合数量")
    private BigDecimal combinationQuantity;

    @ApiModelProperty(value = "批次规则")
    private Map<String, Object> batchRule;

    @ApiModelProperty(value = "打印计划数量（打印发货单）")
    private BigDecimal printPlanQuantity;

}
